﻿/**
 这个是保留接口，方便我处理数据库
 */
var Bearcat = require('bearcat');
var Async = require("async")

module.exports = function () {
    return Bearcat.getBean({
        id: "get-delmotion",
        func: delmotion,
        props: [
            {name: "app", "ref": "application"}
        ]
    });
}

function delmotion() {
    this.app = null;
}

var CheckMotionDevice = function (msg) {
    if(msg.params.motion == undefined)
        return false;
    //  if(msg.params.motion.length != 40)
    //    return false;
    return true;
}

delmotion.prototype.handle = function (msg,next) {
    next(null,{code:101,msg:110});
    return;
    var model = this.app.getComponent("dao").getConnection().model("adminMsg");
    model.ResetTimes();
}